import httpInstance from '@/utils/http'

/**
 * @description: 获取banner图
 */
export function getHomeBannerAPI(params = {}) {
    const { distributionSite = '1' } = params
    return httpInstance({
        url: 'home/banner',
        params: {
            distributionSite
        }
    })
}

/**
 * @description: 获取新鲜好物列表
 */
export function getNewAPI() {
    return httpInstance({
        url: 'home/new'
    })
}

/**
 * @description: 获取人气推荐列表
 */
export function getHotAPI() {
    return httpInstance({
        url: '/home/hot'
    })
}
/**
 * @description: 获取PRODUCT商品列表
 */
export function getProductGoodAPI() {
    return httpInstance({
        url: '/home/goods'
    })
}
